package chap3_9;

public class Exer3_9_4 {
    public static void main(String[] args) {
        int count = 0;//计数用
        for (int num = 10001; ; num++) {
            int i = 2;
            while (i*i<num &&num%i!=0){
                i++;
            }
            if(i*i>num &&num!=1){
                System.out.println(num);
                count++;
                if(count>=10){
                    break;
            }
            }


        }
    }
}
